package com.fourth.shopping.mapper;

import com.fourth.shopping.commons.OrdersTableSearch;
import com.fourth.shopping.vo.OrdersVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OrdersMapper {
    List<OrdersVO> getOrderAsPage(@Param("orderTableSearch") OrdersTableSearch ordersTableSearch,
                                  @Param("offset") Integer offset, @Param("limit") Integer limit);

    Integer getOrdersNum(@Param("orderTableSearch") OrdersTableSearch ordersTableSearch);

    List<Integer> getUIdByOrdersNo(@Param("orderNo") String ono);

}